package com.budwk.app.wxprogram.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import com.budwk.starter.database.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;
import java.util.Date;

/**
 * @title: Disaster_opinion
 * @Author Tan
 * @Date: 2023/5/6 15:58
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table("disaster_opinion")
@Comment("志愿者表")
@ApiModel(description = "志愿者表")
public class Disaster_opinion extends BaseModel implements Serializable {

    private static final long serialVersionUID=1L;

    @Column
    @Comment("id")
    @Name
    @ApiModelProperty(description = "id")
    @ColDefine(type = ColType.VARCHAR, width = 64)
    @PrevInsert(els = {@EL("uuid()")})
    private String id;

    /**
     * 排序
     */
    @Comment("排序")
    @Column
    @ApiModelProperty(description = "排序")
    @ColDefine(type = ColType.INT, width = 200)
    private Integer sort;

    /**
     * 灾害信息条数
     */
    @Comment("灾害信息条数")
    @Column
    @ApiModelProperty(description = "灾害信息条数")
    @ColDefine(type = ColType.INT, width = 200)
    private Integer disaster_number;

    /**
     * 灾害类型
     */
    @Comment("灾害类型")
    @Column
    @ApiModelProperty(description = "灾害类型")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String disaster_type;

    /**
     * 省
     */
    @Comment("省")
    @Column
    @ApiModelProperty(description = "省")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String province;

    /**
     * 市
     */
    @Comment("市")
    @Column
    @ApiModelProperty(description = "市")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String city;

    /**
     * 区县
     */
    @Comment("区县")
    @Column
    @ApiModelProperty(description = "区县")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String district;

    /**
     * 灾害发生日期
     */
    @Comment("灾害发生日期")
    @Column
    @ApiModelProperty(description = "灾害发生日期")
    @ColDefine(type = ColType.TIMESTAMP, width = 200)
    private Date disaster_date;

    /**
     * 标题生成时间
     */
    @Comment("标题生成时间")
    @Column
    @ApiModelProperty(description = "标题生成时间")
    @ColDefine(type = ColType.TIMESTAMP, width = 200)
    private Date title_create_date;

    /**
     * 对应的应急信息标题
     */
    @Comment("对应的应急信息标题")
    @Column
    @ApiModelProperty(description = "对应的应急信息标题")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String information_title;

    /**
     * 灾害排行榜标题
     */
    @Comment("灾害排行榜标题")
    @Column
    @ApiModelProperty(description = "灾害排行榜标题")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String disaster_title;


}
